﻿/**
 * Model representing a Consolidator object
 */
Ext.define('Sisconsolid.model.Consolidator', {
      extend: 'Ext.data.Model',   
      idProperty: 'idConsolidator',
      fields: [
            // id field
            {
                  name: 'idConsolidator',
                  type: 'int',
                  useNull : true
            },
            {
                  name: 'firstName',
                  type: 'string'
            },
            {
                  name: 'lastName',
                  type: 'string'
            },
            {
                  name: 'document',
                  type: 'string'
            },
            {
                  name: 'email',
                  type: 'string'
            },
            {
                  name: 'personalPhone',
                  type: 'string'
            },
            {
                  name: 'idFamily',
                  type: 'int'
            },
            {
                  name: 'family',
                  type: 'string',
				  persist: false
            }			
      ] 
});